﻿using System;

namespace libEngineAI
{
	public struct Coordinate
	{
		public int x { get; set; }
		public int y { get; set; }

		public override bool Equals(object obj)
		{
			bool res = false;

			if( obj.GetType() == GetType() )
			{
				Coordinate c = ( Coordinate )obj;

				if( c.x == x && c.y == y )
					res = true;
			}

			return res;
		}

		public override int GetHashCode()
		{
			return x ^ y;
		}
	}
}

